package com.me.forum.dao;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.me.forum.domain.User;
import com.me.forum.request.CategoryRequest;
import com.me.forum.request.UserRequest;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.me.forum.domain.Category;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ICategoryDao extends BaseMapper<Category> {
    IPage<Category> selectByAll(@Param("c") CategoryRequest creq, IPage<Category> page);

    int insertSelective(CategoryRequest creq);

    int updateByName(CategoryRequest creq);

    Category selectByName(@Param("name")String name);





}
